<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/metro.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/font-awesome.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/style_responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light.css" rel="stylesheet" id="style_color">
<link rel="shortcut icon" type="image/x-icon" href="${ctx }/resources/img/favicon.ico">
<style>
.page-sidebar>ul {
	list-style: none;
	margin: 0;
	padding: 0;
	margin: 0;
	padding: 0;
}

.page-sidebar>ul>li {
	display: block;
	margin: 0;
	padding: 0;
	border: 0px;
}
</style>
<title>系统管理</title>
</head>
<body class="fixed-top breakpoint-1280">
	<!-- BEGIN HEADER -->
	<div class="header navbar navbar-inverse navbar-fixed-top">
		<!-- BEGIN TOP NAVIGATION BAR -->
		<div class="navbar-inner">
			<div class="container-fluid">
				<!-- BEGIN LOGO -->
				<a class="brand" href="${ctx }/root/home.jhtml"><img src="${ctx }/resources/img/logo/logo_big.png" style="width: 41px; margin-top: -8px;" />FINANCE财务管理系统</a>
				<!-- END LOGO -->
				<ul class="nav pull-right">
					<li class="dropdown user"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> <span
							class="username"></span> <i class="icon-angle-down"></i>
					</a>
						<!--<ul class="dropdown-menu">
							 <li><a href="#"><i class="icon-user"></i> 我的简介</a></li>
							<li><a href="#"><i class="icon-calendar"></i> 我的日历</a></li>
							<li><a href="#"><i class="icon-tasks"></i> 我的任务</a></li> 
							<li class="divider"></li>
							<li><a href="javascript:;" onclick="logout()"><i class="icon-key"></i> 退出</a></li>
						</ul> --></li>
				</ul>
			</div>
		</div>
		<!-- END TOP NAVIGATION BAR -->
	</div>
	<!-- END HEADER -->
	<!-- BEGIN CONTAINER -->
	<div class="page-container row-fluid" id="info">
		<!-- BEGIN SIDEBAR -->
		<div class="page-sidebar nav-collapse collapse">
			<!-- BEGIN SIDEBAR MENU -->
			<ul>
				<li>
					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
					<div class="sidebar-toggler hidden-phone"></div> <!-- END SIDEBAR TOGGLER BUTTON -->
				</li>
				<li>
					<!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
					<form class="sidebar-search">
						<!-- <div class="input-box">
							<a href="javascript:;" class="remove"></a>
							<input type="button" class="submit" value=" " />
							<input type="text" placeholder="Search..." />							
						</div> -->
					</form> <!-- END RESPONSIVE QUICK SEARCH FORM -->
				</li>
				<li class="start active "><a href="${ctx }/root/home.jhtml"> <i class="icon-home"></i> <span class="title">首页</span>
						<span class="selected"></span>
				</a></li>

				<li class="has-sub"><a href="javascript:;"> <i class="icon-bookmark-empty"></i> <span class="title">系统管理</span>
						<span class="arrow"></span>
				</a>
					<ul class="sub">
						<li><a href="${ctx }/organ/list.jhtml" target="frame_content" onclick="refresh(this)">组织机构管理</a></li>
						<li><a href="${ctx }/bank/list.jhtml" target="frame_content" onclick="refresh(this)">银行帐户管理</a></li>
						<li><a href="${ctx }/bank/create.jhtml" target="frame_content" onclick="refresh(this)">增加银行信息</a></li>
					</ul>
				</li>

				<li class="has-sub"><a href="javascript:;"> <i class="icon-calendar"></i> <span class="title">财务管理</span> <span
						class="arrow"></span>
				</a>
					<ul class="sub">
						<li><a href="${ctx }/cashflow/list.jhtml" target="frame_content" onclick="refresh(this)">现金流</a></li>
						<li><a href="#" target="frame_content" onclick="refresh(this)">流水帐录入</a></li>
					</ul>
				</li>
				<li class="has-sub"><a href="javascript:;"> <i class="icon-calendar"></i> <span class="title">租赁管理</span> <span
						class="arrow"></span>
				</a>
					<ul class="sub">
						<li><a href="${ctx }/store/list.jhtml" target="frame_content" onclick="refresh(this)">门面信息</a></li>
					</ul>
				</li>
				<li>
				<a href="javascript:;" onclick="logout()"> <i class="icon-key"></i> <span class="title">退出</span></a>
				</li>
			</ul>
		</div>
		<!-- END SIDEBAR -->
		<!-- BEGIN PAGE -->
		<div class="page-content">
			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<div id="portlet-config" class="modal hide">
				<div class="modal-header">
					<button data-dismiss="modal" class="close" type="button"></button>
					<h3>Widget Settings</h3>
				</div>
				<div class="modal-body">
					<p>Here will be a configuration form</p>
				</div>
			</div>
			<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<!-- BEGIN PAGE CONTAINER-->
			<div class="container-fluid">
				<!-- BEGIN PAGE HEADER-->
				<div class="row-fluid">
					<div class="span12">
						<h3 class="page-title" id="page-title">
							首页 <small id="title-show ">欢迎财务管理系统</small>
						</h3>
						<ul class="breadcrumb" id="breadcrumb">
							<li><i class="icon-home"></i> <a href="${ctx }/manager/home">Home</a> <span class="icon-angle-right"></span>
							</li>
							<li><a href="javascript:void(0);" target="frame_content" onclick="refresh(this)">首页</a></li>
						</ul>
						<!-- END PAGE TITLE & BREADCRUMB-->
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<div id="dashboard">
					<iframe name="frame_content" id="frame_content" src="${ctx }/root/welcome.jhtml" scrolling="auto" frameborder="0" style="width: 100%;"></iframe>
					<script type="text/javascript">
						function reinitIframe() {
							var iframe = document
									.getElementById("frame_content");
							try {
								var bHeight = iframe.contentWindow.document.body.scrollHeight;
								var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
								var height = Math.max(bHeight, dHeight);

								var bWidth = iframe.contentWindow.document.body.scrollWidth;
								var dWidth = iframe.contentWindow.document.documentElement.scrollWidth;
								var width = Math.max(bWidth, dWidth);

								iframe.height = height;
								// iframe.width=width;
							} catch (ex) {
								//alert(ex);
							}
						}
						window.setInterval("reinitIframe()", 200);
					</script>
				</div>
			</div>
		</div>
		<!-- END PAGE -->
	</div>
	<!-- END CONTAINER -->
	<!-- BEGIN FOOTER -->
	<div class="footer " id="bottom">
		2013 &copy; 产业社区
		<div class="span pull-right" id="bottom_right">
			<span class="go-top"><i class="icon-angle-up"></i></span>
		</div>
	</div>
	<!-- END FOOTER -->
</body>
<script type="text/javascript" src="${ctx }/resources/js/jquery.js"></script>
<script type="text/javascript" src="${ctx }/resources/css/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${ctx }/resources/js/sns/jquery.cookie.js"></script>
<script type="text/javascript" src="${ctx }/resources/css/bootstrap/js/app.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function() {
		App.init(); // init the rest of plugins and elements
		bottom();
	});

	var refresh = function(e) {
		window.frames['frame_content'].location.href = e.href + "?random="
				+ Math.floor(Math.random() * 100000);
		window.frames['frame_content'].location.href = window.frames['frame_content'].location.href;
	};
	document.getElementById("frame_content").onload = document
			.getElementById("frame_content").onreadystatechange = function() {
		this.height = 500;
	};
	var logout = function() {
		if (confirm("您确定要退出吗？")) {
			window.location = '${ctx }/admin/logout';
		}
		return false;
	};
	var bottom = function() {
		var infoHeight = document.getElementById("info").scrollHeight;
		var bottomHeight = document.getElementById("bottom").scrollHeight;
		var allHeight = document.documentElement.clientHeight;
		var bottom = document.getElementById("bottom");
		if ((infoHeight + bottomHeight) < allHeight) {
			bottom.style.position = "absolute";
			bottom.style.bottom = "0";
			bottom.style.width = "98%";
		} else {
			bottom.style.position = "";
			bottom.style.bottom = "";
		}
		setTimeout('bottom()', 10);
	};
</script>
</html>
